package com.blank.task19;

import com.blank.task14.FoldsCopyTest;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

public class ThreadPoolTest {
    public static void show(){
        //1、创建一个线程池
        ExecutorService executorService = Executors.newFixedThreadPool(10);
        //2、向线程池中布置任务
        executorService.submit(new FoldsCopyTest());
        //3、关闭线程池
        executorService.shutdown();
    }
}
